package com.cloud.api.domain.tsp;

import com.cloud.api.validgroup.ValidateGroupSelectVin;
import com.cloud.mybatis.domain.PageModelNew;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@Accessors
@Schema(name = "VinTimePeriod")
public class VinTimePeriod extends PageModelNew implements Serializable {


    @Schema(description = "vin")
    @NotEmpty(message = "{validation.Information.vin}")
    private String vin;

    @Schema(description = "开始时间")
    @NotNull(message = "{validation.track.startTime}")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @NotNull(message = "{validation.track.endTime}")
    private LocalDateTime endTime;

    @Schema(description = "开始日期")
    @JsonIgnore
    private LocalDate startTimeDate;

    /*@Schema(description = "最小纬度")
    @JsonIgnore
    private String minLat;

    @Schema(description = "最大纬度")
    @JsonIgnore
    private String maxLat;

    @Schema(description = "最小经度")
    @JsonIgnore
    private String minLng;

    @Schema(description = "最大经度")
    @JsonIgnore
    private String maxLng;*/
}
